#ifndef __LAVIDA_H__
#define __LAVIDA_H__

#include "includes.h"
#include "vehicle.h"
#include "drivers.h"

typedef struct {
    uint8_t id;
    uint16_t txid;
    uint8_t cmd;
    uint8_t pids[2];
    uint8_t size;
    uint8_t support;
} UdpPidMap;

void lavida_init(Vehicle *vehicle);

uint8_t lavida_check_engine_on(void);
void lavida_process_eng_data(EngineDataMap *dataMap);
void lavida_process_bcm_data(BcmDataMap *dataMap);

#endif
